package com.itheima.wisdomnext.util;

import com.itheima.wisdomnext.Exception.BusinessException;
import com.itheima.wisdomnext.entity.Result.enumcalss.ErrorCode;

public class BanS_Util extends RuntimeException {
    public static void isTrue(Boolean flag, ErrorCode errorCode, String message) {
        if (flag) {
            throw new BusinessException(errorCode.getCode(), message);
        }
    }
}
